package com.baichang.taoshunda.dao.impl;

import com.baichang.framework.dao.impl.BaseDaoImpl;
import com.baichang.taoshunda.dao.CouponDetailsDao;
import com.baichang.taoshunda.entity.CouponDetails;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class CouponDetailsDaoImpl extends BaseDaoImpl<CouponDetails> implements CouponDetailsDao {

    /**
     * @param kid
     * @return
     */
    @Override
    public List<Map<String, Object>> findCouponDetailsByKid(String kid) {
        String sql = " SELECT min_money,sub_money FROM {table} WHERE kid=? ";
        return queryForMapList(sql, kid);
    }
}
